package com.qixin.api.serviceimpl;

import com.qixin.api.bean.PtMenuResourse;
import com.qixin.api.bean.PtRole;
import com.qixin.api.bean.ZtreeBean;
import com.qixin.api.mapper.PtMenuResourseMapper;
import com.qixin.api.service.PtMenuResourseService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单资源表 服务实现类
 * </p>
 *
 * @author 吕正睿
 * @since 2018-11-13
 */
@Service
public class PtMenuResourseServiceImpl extends ServiceImpl<PtMenuResourseMapper, PtMenuResourse> implements PtMenuResourseService {

	@Override
	public List<PtMenuResourse> findMenuByRole(PtRole ptRole) {
		return baseMapper.findMenuByRole(ptRole);
	}

	@Override
	public List<ZtreeBean> findMenuZtree() {
		return baseMapper.findMenuZtree();
	}
}
